package com.comboo.example.web.api;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import javax.validation.Valid;

/**
 * @author Sherman
 * created in 2018/12/19
 */
@JsonInclude
public class RequestWrapper<T> {

    @Valid
    @JsonProperty("data")
    private T payload;

    public T getPayload() {
        return payload;
    }
}
